home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8404.arc
/
SEARCH4.BAS
< prev
next >
Wrap
BASIC Source File
|
1986-09-14
|
512b
|
20 lines
'
'$$$$$$$$$$$$$$
'Subroutine
'$$$$$$$$$$$$$$
'
' This is the assembly language binary search subroutine.
' Input is the table in which to look up (ITABLE),
' the number of entries in the table (NTABLE), and
' the number whose index is to be found (JKEY).
' Output is the index (INDX) such that
' ITABLE(INDX) = JKEY
'
' ASSEMBLY LANGUAGE BINARY SEARCH
'
8000 rem Start.
'
call binsearch (ITABLE(1), NTABLE, JKEY, INDX)
'
return